<% content_tag :div, :class => 'bigwrapper' do%>
<%= flash[:error] %>
	<% form_tag :action => 'new_fund' do -%>
	<% content_tag :div, :class => 'header' do -%>
		<%= content_tag :img, nil, :src => '/images/icons/icons_48.png', :class => 'hleft' %>
		<%= content_tag :span, 'New Fund',:class => 'hleft' %>
		<% content_tag :span, :class => 'headertext' do -%>
			<%= content_tag :strong, 'Welcome to Sparktools!' -%>
			<%= content_tag :p, "Funds are used to keep track of debits and credits that student organizations may incur. Most student organizations will only have one fund, liquid assets. Some organizations may find that donations or grants can only be used for one particular project. If this is the case, they create a separate fund. Starred (<span class='red'>*</span>) items are required. " -%>
		<% end -%>
	<% end -%>
		<%= hidden_field :fund, :group_id, :value => @group_id %>
		<%= hidden_field :fund_entry, :status, :value => "Unopened"%>
		<% content_tag :div, :class => 'mainbox' do %>
			<%= content_tag :h3, '1. Description'%>
			<%= content_tag :p, "Title (<span class='red'>*</span>): " %>
			<%= content_tag(:div,text_field(:fund_entry, :name)) %>
			<%= content_tag :p, "Main text ( describe how this fund may be used ) (<span class='red'>*</span>): " %>
			<%= content_tag(:div,text_area(:fund_entry, :note, {:size=>"70x4"})) %>
		<% end -%>
		<% content_tag :div, :class => 'mainbox' do -%>
				<%= content_tag :h3, '2. Create'%>
				<%= content_tag :p, "Once everything is filled out, click save to create this fund. Once the fund is created, you may add line item debits or credits to manage the fund." %>
				<%= submit_tag 'Create Fund' %>
		<% end -%>
	<% end %>
<% end -%>